﻿<UserControl x:Class="agile_tool.userControl.userStorySprintItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" >
    <UserControl.Resources>
    

        <Storyboard x:Key="openTheDesc">
            <DoubleAnimation Storyboard.TargetName="spSlide" Storyboard.TargetProperty="(Height)" From="0" To="220" Duration="0:0:1" AutoReverse="False"  />
        </Storyboard>
        <Storyboard x:Key="closeTheDesc">
            <DoubleAnimation Storyboard.TargetName="spSlide" Storyboard.TargetProperty="(Height)" From="220" To="0" Duration="0:0:1" AutoReverse="False"  />
        </Storyboard>
        

    </UserControl.Resources>
    
    <StackPanel >
        <Border BorderBrush="Black" BorderThickness="3" CornerRadius="6" >
        <StackPanel>
        
            <StackPanel Orientation="Horizontal" >

            <TextBox Name="tbName" IsEnabled="False" Width="376"></TextBox>
            <Button Content="View/Close" Height="23" Name="btnView" Width="75" Click="btnView_Click" />  
             <Button Visibility="Collapsed" Content="Edit" Height="23" Name="btnEdit" Width="75" />
            <Button Visibility="Collapsed" Content="Delete" Height="23" Name="btnDell" Width="75" />
        </StackPanel>
                <StackPanel Name="spSlide" Height="0">
                    <Expander Header="Details:" Height="Auto" Name="expander1" IsExpanded="False">
                        <StackPanel>

                            <Border BorderBrush="LightBlue" BorderThickness="0.5" CornerRadius="6">
                    <DockPanel HorizontalAlignment="Center">
                            <StackPanel Height="44" Name="stackPanel1" Width="106">
                                <TextBlock Text="Priority" Height="17" HorizontalAlignment="Center"  />
                                <TextBox Height="23" Text="0" Name="tbPriority" Width="90" TextChanged="tbPriority_TextChanged" />
                            </StackPanel>
                            <StackPanel Height="44" Name="stackPanel2" Width="106" >
                                <TextBlock Text="Effort" Height="17" HorizontalAlignment="Center"  />
                                <TextBox Height="23" Text="0"  Name="tbEffort" Width="90" TextChanged="tbPriority_TextChanged"/>
                            </StackPanel>
                            
                        </DockPanel>
                </Border>
				<TextBlock Text="Description:"></TextBlock> 
                    <DockPanel>
        <TextBox Name="tbDesc" IsEnabled="False" Height="50" Width="435"></TextBox>
                            </DockPanel>
                        </StackPanel>
                    </Expander>
                    <ListBox Height="194" Name="lbTasks" Width="449" />
                </StackPanel>

            </StackPanel>
        </Border>
            
    </StackPanel>
</UserControl>
